<?php /* Smarty version Smarty-3.1.18, created on 2017-07-22 21:35:12
         compiled from "/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/gm/member.index.html" */ ?>
<?php /*%%SmartyHeaderCode:944712955597351beb4f299-19964929%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0f62622a51a118ed590cdbbf5bbc0f602b826e32' => 
    array (
      0 => '/Applications/MAMP/htdocs/PHP/jifenshop/protected/template/gm/member.index.html',
      1 => 1500730466,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '944712955597351beb4f299-19964929',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_597351bec29e01_47910212',
  'variables' => 
  array (
    'where' => 0,
    'keyword' => 0,
    'invite_code' => 0,
    'begin_date' => 0,
    'end_date' => 0,
    'status' => 0,
    'rs' => 0,
    'row' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_597351bec29e01_47910212')) {function content_597351bec29e01_47910212($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/Applications/MAMP/htdocs/PHP/jifenshop/framework/class/smarty-3.1.18/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<div class="page-header">
	<h6>
		会员管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			会员列表
		</small>
		<div style="text-align:right">
			<a href="?app=member&act=export&where=<?php echo $_smarty_tpl->tpl_vars['where']->value;?>
" target="_blank">导出到EXCEL</a>
		</div>
	</h6>
</div><!-- /.page-header -->

<form class="form-inline" action="?" method="get" style="padding-bottom:5px;">
<input type="hidden" name="app" id="app" value="member" />
<input type="hidden" name="act" id="act" value="index" />
<input type="text" class="input-medium" placeholder="关键词" name="keyword" value="<?php echo $_smarty_tpl->tpl_vars['keyword']->value;?>
" />
<input type="text" class="input-medium" placeholder="邀请码" name="invite_code" value="<?php echo $_smarty_tpl->tpl_vars['invite_code']->value;?>
" />
<input type="text" class="form-control" name="begin_date" id="begin_date" placeholder="开始日期" value="<?php echo $_smarty_tpl->tpl_vars['begin_date']->value;?>
" initdate="" style="width:150px;" />
 -
<input type="text" class="form-control" name="end_date" id="end_date" placeholder="结束日期" value="<?php echo $_smarty_tpl->tpl_vars['end_date']->value;?>
" initdate="" style="width:150px;" />

<select name="status" id="status" class="form-control">
	<option value="">状态</option>
	<option value="0" <?php if ($_smarty_tpl->tpl_vars['status']->value==='0') {?>selected<?php }?>>冻结</option>
	<option value="1" <?php if ($_smarty_tpl->tpl_vars['status']->value==='1') {?>selected<?php }?>>正常</option>
</select>
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>头像</th>
			<th>会员名称</th>
			<th>手机号码</th>
			<th>类型</th>
			<th>状态</th>
			<th>积分</th>
			<th>登录次数</th>
			<th>登录时间</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
</td>
			<td style="text-align:left;"><a href="?app=member&act=edit&member_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"><img src="<?php if ($_smarty_tpl->tpl_vars['row']->value['avatar']!=='') {?><?php echo $_smarty_tpl->tpl_vars['row']->value['avatar'];?>
<?php } else { ?>/images/avatar.jpg<?php }?>" width="50" /></a></td>
			<td style="text-align:left;"><a href="?app=member&act=edit&member_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
"><?php if ($_smarty_tpl->tpl_vars['row']->value['nick_name']) {?><?php echo $_smarty_tpl->tpl_vars['row']->value['nick_name'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['row']->value['name'];?>
<?php }?></a></td>
			<td style="text-align:left;"><?php echo $_smarty_tpl->tpl_vars['row']->value['mobile'];?>
</td>
			<td style="text-align:left;"><?php echo $_smarty_tpl->tpl_vars['row']->value['member_type_name'];?>
</td>
			<td style="text-align:left;"><?php echo $_smarty_tpl->tpl_vars['row']->value['status_name'];?>
</td>
			<td style="text-align:left;"><?php echo $_smarty_tpl->tpl_vars['row']->value['integral'];?>
</td>
			<td style="text-align:left;"><?php echo $_smarty_tpl->tpl_vars['row']->value['logins'];?>
</td>
			<td style="text-align:left;"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row']->value['last_time'],"%Y-%m-%d");?>
</td>
			<td>
				<!--[CDATA[
				<a href="?app=recharge&act=manual_recharge&member_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" title="充值">
					<button class="btn btn-xs btn-info">
					<i class="menu-icon fa fa-cny bigger-120"></i>
				</button>
				</a>
				-->
				<a href="?app=member&act=edit&member_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
">
					<button class="btn btn-xs btn-info">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
				</button>
				</a>
				<a href="?app=member&act=delete&member_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" class="delete">
					<button class="btn btn-xs btn-danger">
					<i class="ace-icon fa fa-trash-o bigger-120"></i>
				</button>
				</a>
			</td>
		</tr>
		<?php }
if (!$_smarty_tpl->tpl_vars['row']->_loop) {
?>
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		<?php } ?>
		
	</tbody>
</table>
	<div class="mypage" style="text-align:right">
			共 <?php echo $_smarty_tpl->tpl_vars['page']->value['num_records'];?>
 个记录  <?php echo $_smarty_tpl->tpl_vars['page']->value['current_page'];?>
 / <?php echo $_smarty_tpl->tpl_vars['page']->value['num_pages'];?>
 页  <?php echo $_smarty_tpl->tpl_vars['page']->value['first_page'];?>
 <?php echo $_smarty_tpl->tpl_vars['page']->value['prev'];?>
 <?php echo $_smarty_tpl->tpl_vars['page']->value['nav'];?>
 <?php echo $_smarty_tpl->tpl_vars['page']->value['next'];?>
 <?php echo $_smarty_tpl->tpl_vars['page']->value['last_page'];?>

	</div>
<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<script>
$(function(){
	$('#begin_date').datepicker({
		useStyle:'datepicker2',
		readonly:false,
		showTime:true,
		showSecond:false,
		format:'yyyy-mm-dd hh:nn'
	});
	$('#end_date').datepicker({
		useStyle:'datepicker2',
		readonly:false,
		showTime:true,
		showSecond:false,
		format:'yyyy-mm-dd hh:nn'
	});
});
</script>

<?php }} ?>
